package a.exam.go;

public class GoWhere {
	private IVehicle vehicle;
	
	public IVehicle getVehicle() {
		return vehicle;
	}

	public void setVehicle(IVehicle vehicle) {
		this.vehicle = vehicle;
	}
	
	public void gohome1(){
		ByBus byVehicle = new ByBus();
		byVehicle.gohome();
	}

	public void gohome2(){
		vehicle.gohome();
	}
}
